<?php
	/*命名空间路径*/
	use KJ\KJ; 
	
	/*定义常量*/ 
	define('CONFIG_PATH', './Config/config.php');  /*->define()函数定义常量，常量统一用大写*/
	define('APP_PATH','./Application/');
	define('__PUBLIC__','./Public/');
	define('IS_GET',($_SERVER['REQUEST_METHOD'] =='GET') ? true : false);
    define('IS_POST',($_SERVER['REQUEST_METHOD'] =='POST') ? true : false);
	
	
	/*加载自动链接功能*/
	require './KJ/Autoload.php';   
	
	/*创建一个KJ的对象实例*/
	$application = new Kj(); 
	
	/*调用KJ对象实例下面的run方法*/   
	$application->run();
?>